Skip to content

feat(make): Add SRCDIR to Makefile#16

Open
jjolly wants to merge 1 commit intoowickstrom:mainfrom
jjolly:jj/make-src-dir
Open

feat(make): Add SRCDIR to Makefile#16
jjolly wants to merge 1 commit intoowickstrom:mainfrom
jjolly:jj/make-src-dir

Conversation

@jjolly
Copy link
Copy Markdown

@jjolly jjolly commented Feb 3, 2025

The current Makefile expects the source files (index.md and template.html) in the demo directory. If another source directory is desired, the Makefile must be modified. This is can be the case if multiple index.md files are being maintained.

This change adds the SRCDIR variable and sets the default to demo. This allows for default behavior. If another source directory should be used the following command line works:

SRCDIR=my-web-site make

This will cause the Makefile to look for index.md and template.html in the my-web-site directory.

The current Makefile expects the source files (`index.md` and
`template.html`) in the `demo` directory. If another source directory is
desired, the Makefile must be modified. This is can be the case if
multiple `index.md` files are being maintained.

This change adds the `SRCDIR` variable and sets the default to `demo`.
This allows for default behavior. If another source directory should be
used the following command line works:

    SRCDIR=my-web-site make

This will cause the Makefile to look for `index.md` and `template.html`
in the `my-web-site` directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant